package zuoye2;

import java.util.LinkedHashMap;
import java.util.Map;

public class Test4 {
    public static void main(String[] args) {

        Map<Student,String> map = new LinkedHashMap<>();

        map.put(new Student(1,"张三",81.5),"江苏");
        map.put(new Student(1,"李四",83.5),"安徽");
        map.put(new Student(3,"王五",82.5),"山东");
        map.put(new Student(4,"老六",81.5),"南京");
        map.forEach((k,v)-> System.out.println(k+","+v));
    }
}
